<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>高校人力资源管理系统</title>

<link rel="stylesheet"
	href="<%=request.getContextPath() %>/WEB-ROOT/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
	href="<%=request.getContextPath() %>/WEB-ROOT/css/common.css">

</head>
<body>
<sec:authentication property="principal.authorities" scope="session" var="authority"/>
<sec:authentication property="principal.username" scope="session" var="username"/>
<jsp:include page="html/navigation.jsp"></jsp:include>
	<input type="hidden" name="${_csrf.parameterName }"
		value="${_csrf.token }" />

	<div class="container full">
		<div class="row">
			<div class="col-lg-2  col-sm-12 a">
				<nav class="navbar navbar-default" role="navigation">
					<div class="container-fluid">
 						<div class="hid"style="width:100% ; height:15%; margin-bottom: 1px; text-align: center;" >
							<p style=" margin-top: 35px;font-size: 30px;">高校人力资源管理系统</p>
						</div>
						<div class="panel-group midfont" id="accordion">
<sec:authorize access="hasAnyRole('ROLE_ADMIN')">
<div class="panel panel-default">
								<div class="panel-heading "  style="padding-left: 35%">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion "
											href="#collapseFive"
												 class="midfont" ><i class="glyphicon glyphicon-certificate"></i> 系统管理</a>
												<!--  onclick="closeOther('collapseFive')" -->
									</h4>
								</div>
								<div id="collapseFive" class="panel-collapse collapse" >
									<div class="panel-body">
										<ul class="list-group">
											<a href="javascript:void(0)"
												onclick="htmlDispatcher('WEB-ROOT/html/user.jsp',' 首页/ 系统管理/ 员工账号','员工账号')"
												class="list-group-item leftlist" id="userCount"><i class="glyphicon glyphicon-user"></i> 员工账号</a>
											<a href="javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/roleInfo.jsp',' 首页/ 角色管理/ 角色信息','角色信息')"
											   class="list-group-item leftlist" id="userCount"><i class="glyphicon glyphicon-headphones"></i> 角色管理</a>
										</ul>
									</div>
								</div>
							</div>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN')">
<div class="panel panel-default">
								<div class="panel-heading" style="padding-left: 35%" >
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
											href="#collapseOne"
												 class="midfont"><i class="glyphicon glyphicon-home"></i> 机构管理</a>
											<!-- 	 onclick="closeOther('collapseOne')" -->
									</h4>
								</div>
								<div id="collapseOne" class="panel-collapse collapse ">
									<div class="panel-body">
										<ul class="list-group leftlist">
											<a href=" javascript:void(0)"
												onclick="htmlDispatcher('WEB-ROOT/html/departments.jsp',' 首页/ 部门管理/ 部门信息','部门信息')"
												class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-search"></i> 部门查询</a>
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/authority.jsp',' 首页/ 部门管理/ 部门信息','部门信息')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-search"></i> 机构授权</a>
										</ul>




								</div>
							</div>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_MANAGER')">
<div class="panel panel-default">
								<div class="panel-heading" style="padding-left: 35%" >
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
											href="#collapseTwo"
												 class="midfont"><i class="glyphicon glyphicon-star-empty"></i> 员工管理 </a>
									</h4>
								</div>
								<div id="collapseTwo" class="panel-collapse collapse">
									<div class="panel-body">
										<ul class="list-group">
										<a href=" javascript:void(0)"
												onclick="htmlDispatcher('WEB-ROOT/html/userInfo1.jsp',' 首页/ 员工管理/ 员工信息','员工信息')"
												class="list-group-item leftlist" id="departmentsIndex2"><i class="glyphicon glyphicon-folder-close"></i> 员工信息</a>
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/bianzhiInfo.jsp',' 首页/ 编制管理/ 编制信息','编制信息')"
											   class="list-group-item leftlist" id="departmentsIndex2"><i class="glyphicon glyphicon-list-alt"></i> 编制信息</a>
										<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/userChart.jsp',' 首页/ 员工统计/ 员工统计','员工统计')"
											   class="list-group-item leftlist" id="departmentsIndex1"><i class="glyphicon glyphicon-gift"></i> 员工统计</a>
										</ul>
									</div>
								</div>
							</div>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_SALARY','ROLE_USER')">
<div class="panel panel-default">
								<div class="panel-heading" style="padding-left: 35%">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
											href="#collapseThree"
												 class="midfont"><i class="glyphicon glyphicon-folder-open"></i> 薪资管理</a>
												<!--  onclick="closeOther('collapseThree')" -->
									</h4>
								</div>

								<div id="collapseThree" class="panel-collapse collapse">
									<div class="panel-body">
										<ul class="list-group">
	<sec:authorize access="hasAnyRole('ROLE_USER')">
	<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/wageperson.jsp',' 首页/ 薪资管理/ 薪资发放','薪资发放')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-download"></i> 个人薪资</a>
	</sec:authorize>
    <sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_SALARY')">
		<a href=" javascript:void(0)"
		   onclick="htmlDispatcher('WEB-ROOT/html/pay.jsp',' 首页/ 薪资管理/ 薪资发放','薪资发放')"
		   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-download"></i> 薪资发放</a>
    <a href=" javascript:void(0)"
                                               onclick="htmlDispatcher('WEB-ROOT/html/Rates/rates.jsp',' 首页/ 薪资管理/ 个税管理','个税管理')"
                                               class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-cog"></i> 参数设置</a>
                                            <a href=" javascript:void(0)"
												onclick="htmlDispatcher('WEB-ROOT/html/wage.jsp',' 首页/ 薪资管理/ 员工薪资','员工薪资')"
                                                class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-screenshot"></i> 薪资项设置</a>

											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/AccumulationFund/accumulationFund.jsp',' 首页/ 薪资管理/ 公积金管理','公积金管理')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-flag"></i> 公积金管理</a>
	</sec:authorize>
										</ul>
									</div>
								</div>
							</div>
</sec:authorize>
							<div class="panel panel-default ">
									<div class="panel-heading" style="padding-left: 35%">
										<h4 class="panel-title">
											<a data-toggle="collapse" data-parent="#accordion"
												href="#collapseFour"
													 class="midfont"><i class="glyphicon glyphicon-arrow-right"></i> 招聘管理 </a>
										</h4>
									</div>
									<div id="collapseFour" class="panel-collapse collapse">
										<div class="panel-body">
											<ul class="list-group">
												<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_YOUKE','ROLE_USER')">
												<a href=" javascript:void(0)"
													onclick="htmlDispatcher('WEB-ROOT/html/employ.jsp',' 首页/ 招聘管理/ 应聘信息','应聘信息')"
													class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-cloud"></i> 应聘信息</a>
												</sec:authorize>
												<%--<a href=" javascript:void(0)"--%>
												   <%--onclick="htmlDispatcher('WEB-ROOT/html/positionshenhe.jsp',' 首页/ 招聘管理/ 应聘信息','应聘信息')"--%>
												   <%--class="list-group-item leftlist" id="departmentsIndex">下发招聘</a>--%>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_MANAGER')">
												<a href=" javascript:void(0)"
												   onclick="htmlDispatcher('WEB-ROOT/html/positionfabu.jsp',' 首页/ 招聘管理/ 招聘信息','招聘信息')"
												   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-upload"></i> 上报招聘</a>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_SHENJI')">

												<a href=" javascript:void(0)"
												   onclick="htmlDispatcher('WEB-ROOT/html/positionshenhe.jsp',' 首页/ 招聘管理/ 应聘信息','应聘信息')"
												   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-film"></i> 审核招聘</a>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_YOUKE','ROLE_USER')">

												<a href=" javascript:void(0)"
												   onclick="htmlDispatcher('WEB-ROOT/html/positionzhaopin.jsp',' 首页/ 招聘管理/ 招聘信息','招聘信息')"
												   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-edit"></i> 招聘投递</a>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_HR')">

												<a href=" javascript:void(0)"
												   onclick="htmlDispatcher('WEB-ROOT/html/postionbaominginfo.jsp',' 首页/ 招聘管理/ 应聘信息','应聘信息')"
												   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-tasks"></i> 报名人员</a>
</sec:authorize>
<sec:authorize access="hasAnyRole('ROLE_ADMIN','ROLE_YOUKE','ROLE_USER')">

												<a href=" javascript:void(0)"
												   onclick="htmlDispatcher('WEB-ROOT/html/postionbaoresult.jsp',' 首页/ 招聘管理/ 应聘信息','应聘信息')"
												   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-ok"></i> 应聘结果</a>
</sec:authorize>

											</ul>
										</div>
									</div>
						
							</div>
<sec:authorize access="hasAnyRole('ROLE_ADMIN')">
<div class="panel panel-default ">
								<div class="panel-heading" style="padding-left: 35%">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
											href="#collapseSix"
												 class="midfont"><i class="glyphicon glyphicon-bookmark"></i> 文件管理 </a>
									</h4>
								</div>
								<div id="collapseSix" class="panel-collapse collapse">
									<div class="panel-body">
										<ul class="list-group">
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/File/fileType.jsp',' 首页/ 文件管理 / 文件类型','文件类型')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-th-list"></i> 文件类型</a>
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/File/file.jsp',' 首页/ 文件管理 / 文件信息','文件信息')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-th-large"></i> 文件信息</a>
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/File/show.jsp',' 首页/ 文件管理 / 发布信息','发布信息')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-star-empty"></i> 发布信息</a>
										</ul>
									</div>
								</div>
							</div>
</sec:authorize>
               <sec:authorize access="hasRole('ROLE_ADMIN')">
              <div class="panel panel-default ">
								<div class="panel-heading" style="padding-left: 35%">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
										   href="#collapseSeven"
										   class="midfont"><i class="glyphicon glyphicon-eye-open"></i> 考勤管理 </a>
									</h4>
								</div>
								<div id="collapseSeven" class="panel-collapse collapse">
									<div class="panel-body">
										<ul class="list-group">
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/Attendance/attendance.jsp',' 首页/ 考勤管理 / 考勤清单','考勤清单')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-file"></i> 考勤清单</a>
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/Attendance/attendancesub.jsp',' 首页/ 考勤管理 / 每月小计','每月小计')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-road"></i> 每月小计</a>
										</ul>
									</div>
								</div>
							</div>
			   </sec:authorize>
<sec:authorize access="hasRole('ROLE_ADMIN')">
<div class="panel panel-default ">
								<div class="panel-heading" style="padding-left: 35%">
									<h4 class="panel-title">
										<a data-toggle="collapse" data-parent="#accordion"
										   href="#collapseEight"
										   class="midfont"><i class="glyphicon glyphicon-inbox"></i> 人员异动</a>
									</h4>
								</div>
								<div id="collapseEight" class="panel-collapse collapse">
									<div class="panel-body">
										<ul class="list-group">
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/Record/record.jsp',' 首页/ 人员异动 / 人员档案管理','人员档案管理')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-book"></i> 人员档案管理</a>
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/Contract/contract.jsp',' 首页/ 人员异动 / 合同登记管理','合同登记管理')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-align-left"></i> 合同登记管理</a>
											<a href=" javascript:void(0)"
											   onclick="htmlDispatcher('WEB-ROOT/html/PeopleChange/peopleChange.jsp',' 首页/ 人员异动 / 人员变动管理','人员变动管理')"
											   class="list-group-item leftlist" id="departmentsIndex"><i class="glyphicon glyphicon-repeat"></i> 人员变动管理</a>

										</ul>
									</div>
								</div>
							</div>
</sec:authorize>
						</div>
					</div>
				</nav>
			</div>
			<div class="col-lg-10 col-sm-12 ">

				<div class="row hid" id="tap"  style="margin-left: 2px">

					<div
						class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;" >
						<button type="button"  class="close" data-dismiss="alert"
							aria-hidden="true"> &times;</button>
							<a href="javascript:void(0);" onclick="htmlDispatcher('WEB-ROOT/html/user.jsp',' 首页/ 系统管理 / 员工账号')">首页</a>
					</div>
					
					
					
				</div>



				<div style="margin-top: 3px">
					<ol class="breadcrumb hid">
						<li class="active" id="breadLi">首页</li>
					</ol>
				</div>
				<%--  <iframe src="<%=request.getContextPath() %>/WEB-ROOT/common/head2.jsp" width="100%" scrolling="yes" height="100%"></iframe> --%>
				<div id="frame"></div>


			</div>
		</div>

	</div>

<script
		src="<%=request.getContextPath() %>/WEB-ROOT/bootstrap/js/jquery-min.js"></script>
<script
		src="<%=request.getContextPath() %>/WEB-ROOT/bootstrap/js/bootstrap.min.js"></script>
<script
		src="<%=request.getContextPath() %>/WEB-ROOT/js/common.js"></script>
<script
		src="<%=request.getContextPath() %>/WEB-ROOT/bootstrap/js/treeview.js"></script>
<script
		src="<%=request.getContextPath() %>/WEB-ROOT/js/pagination.js"></script>
<script
		src="<%=request.getContextPath() %>/WEB-ROOT/bootstrap/js/lTable.js"></script>
<script
		src="<%=request.getContextPath() %>/WEB-ROOT/bootstrap/js/bootstrapValidator.js"></script>
<script
		src="<%=request.getContextPath() %>/WEB-ROOT/plugins/echarts/echarts.min.js"></script>
	<div id="moon"></div>

	<script>
	
	 $( "#frame" ).load( "WEB-ROOT/html/user.jsp", function( response, status, xhr ) {
			$('#frame').html(response);
			});  

	  var userFalg = true;
	  var depFalg = true;
	  var infoFalg = true;
	  var employFalg = true;
	  var wageFalg = true;
	  var payFalg = true;
	  var trainFalg = true;
	  var attendanceFalg = true;
	  var myattendanceFalg = true;
	  var recordFalg = true;
	  var contractFlag=true;
	  var peopleChangeFlag=true;
	  var userStatisticsFlag=true;
	  var fileFlag=true;
	  var fileTypeFlag=true;
	  var attendancesubFalg=true;
	  var ratesFalg=true;
	  var gjjFlag=true;
	  //判断标签栏跳转到哪个页面
	 dispatcherSelect =  function (tab){
		 if (tab=="员工账号"){
			 htmlDispatcher('WEB-ROOT/html/user.jsp',' 首页/ 系统管理/ 员工账号');
		 }
		 if (tab=="部门信息"){
			 htmlDispatcher('WEB-ROOT/html/departments.jsp',' 首页/ 部门管理/ 部门信息');
		 }
		 if (tab=="员工信息"){
			 htmlDispatcher('WEB-ROOT/html/userInfo1.jsp',' 首页/ 员工管理/ 员工信息');
		 }
		 if (tab=="员工薪资"){
			 htmlDispatcher('WEB-ROOT/html/wage.jsp',' 首页/ 薪资管理/ 员工薪资');
		 }
		 if (tab=="薪资发放"){
			 htmlDispatcher('WEB-ROOT/html/pay.jsp',' 首页/ 薪资管理/ 薪资发放');
		 }
		 if (tab=="应聘信息"){
			 htmlDispatcher('WEB-ROOT/html/employ.jsp',' 首页/ 招聘管理/ 应聘信息');
		 }
		 if (tab=="培训计划"){
			 htmlDispatcher('WEB-ROOT/html/train.jsp',' 首页/ 培训管理/ 培训计划');
		 }
		 if (tab=="考勤清单"){
			 htmlDispatcher('WEB-ROOT/html/Attendance/attendance.jsp',' 首页/ 考勤管理 / 考勤清单');
		 }
		 if (tab=="我的考勤"){
			 htmlDispatcher('WEB-ROOT/html/Attendance/myattendance.jsp',' 首页/ 考勤管理 / 我的考勤');
		 }
		 if (tab=="人员档案管理"){
			 htmlDispatcher('WEB-ROOT/html/Record/record.jsp',' 首页/ 人员异动 / 人员档案管理');
		 }
		 if (tab=="合同登记管理"){
			 htmlDispatcher('WEB-ROOT/html/Contract/contract.jsp',' 首页/ 人员异动 / 合同登记管理');
		 }
		 if (tab=="人员变动管理"){
			 htmlDispatcher('WEB-ROOT/html/PeopleChange/peopleChange.jsp',' 首页/ 人员异动 / 人员变动管理');
		 }
		 if (tab=="'员工统计'"){
			 htmlDispatcher('WEB-ROOT/html/userChart.jsp',' 首页/ 员工统计/ 员工统计');
		 }
		 if (tab=="'文件信息'"){
			 htmlDispatcher('WEB-ROOT/html/File/file.jsp',' 首页/  文件管理 / 文件信息');
		 }
		 if (tab=="'文件类型'"){
			 htmlDispatcher('WEB-ROOT/html/File/fileType.jsp',' 首页/  文件管理 / 文件类型');
		 }
		 if (tab=="每月小计"){
			 htmlDispatcher('WEB-ROOT/html/Attendance/attendancesub.jsp',' 首页/ 考勤管理 / 每月小计');
		 }

		 if (tab=="个税管理"){
			 htmlDispatcher('WEB-ROOT/html/Rates/rates.jsp',' 首页/ 薪资管理/ 个税管理');
		 }
		 if (tab=="公积金管理"){
			 htmlDispatcher('WEB-ROOT/html/AccumulationFund/accumulationFund.jsp',' 首页/ 薪资管理/ 公积金管理');
		 }


	 }
	    htmlDispatcher=function(url,breadVal,tab) {
			//加载页面
			$("#frame").load(url, function (response, status, xhr) {
				$('#frame').html(response);
			});

			$("#breadLi").text(breadVal);
			//判断标签是否为空，为空不创建新标签

			if (tab != null) {

				tabFactory = "'" + tab + "'";

				if (tab == "公积金管理") {
					if (gjjFlag) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:15%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						gjjFlag = false;
					}
				}

				if (tab == "个税管理") {
					if (ratesFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						ratesFalg = false;
					}
				}

				if (tab == "每月小计") {
					if (attendancesubFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						attendancesubFalg = false;
					}
				}

				if (tab == "文件类型") {
					if (fileTypeFlag) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						fileTypeFlag = false;
					}
				}

				if (tab == "文件信息") {
					if (fileFlag) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						fileFlag = false;
					}
				}

				if (tab == "员工统计") {
					if (userStatisticsFlag) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						userStatisticsFlag = false;
					}
				}

				if (tab == "人员变动管理") {
					if (peopleChangeFlag) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:15%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						peopleChangeFlag = false;
					}
				}

				if (tab == "合同登记管理") {
					if (contractFlag) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:15%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						contractFlag = false;
					}
				}

				if (tab == "人员档案管理") {
					if (recordFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:15%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						recordFalg = false;
					}
				}

				if (tab == "我的考勤") {
					if (myattendanceFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						myattendanceFalg = false;
					}
				}

				if (tab == "考勤清单") {
					if (attendanceFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						attendanceFalg = false;
					}
				}
				if (tab == "员工账号") {
					if (userFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						userFalg = false;
					}
				}
				if (tab == "部门信息") {
					if (depFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						depFalg = false;
					}
				}
				if (tab == "员工信息") {
					if (infoFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						infoFalg = false;
					}
				}
				if (tab == "员工薪资") {
					if (wageFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						wageFalg = false;
					}
				}
				if (tab == "薪资发放") {
					if (payFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						payFalg = false;
					}
				}
				if (tab == "应聘信息") {
					if (employFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						employFalg = false;
					}
				}
				if (tab == "培训计划") {
					if (trainFalg) {
						var boarddiv = '<div class="alert alert-success alert-dismissable col-lg-2 alertclose " style="height: 5%; width:10%; text-align:center;padding-bottom: 2% ;"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button> ' + '<a href="javascript:void(0);" onclick="dispatcherSelect(' + tabFactory + ')">' + tab + '</a>    </div>';
						$("#tap").append(boarddiv);
						trainFalg = false;
					}
				}

			}
		}

</script>
</body>
</html>
